package com.sdp.right.cron;

import java.util.Hashtable;

import com.sdp.right.entity.SysCron;

public class TaskCollection {

	private static Hashtable<String, SysCron> sysCronTable = new Hashtable<>();
	
	
	public static void addTask(String key,SysCron sysCron) {
		sysCronTable.put(key, sysCron);
	}
	
	public static SysCron getTask(String key) {
		return sysCronTable.get(key);
	}
	
	public static Hashtable<String, SysCron> getAllTask() {
		return sysCronTable;
	}
	
	
}
